package cn.dt70.service.impl;

import cn.dt70.dao.aqbUserMsg.AqbUserMsgMapper;
import cn.dt70.pojo.AqbMsgcontent;
import cn.dt70.pojo.AqbUserMsg;
import cn.dt70.service.AqbUserMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class AqbUserMsgServiceImpl implements AqbUserMsgService {

    @Resource
    AqbUserMsgMapper aqbUserMsgMapper;

    @Override
    public List<AqbUserMsg> getAllMsg(int uid, int status, int start, int end) {

        return aqbUserMsgMapper.getAllMsg(uid,status,start,end);
    }

    @Override
    public int upd(AqbUserMsg aqbUserMsg) {
        return aqbUserMsgMapper.upd(aqbUserMsg);
    }

    @Override
    public int del(int id) {
        return aqbUserMsgMapper.del(id);
    }

    @Override
    public int getTotalCount(int status, int uid) {
        return aqbUserMsgMapper.getTotalCount(status,uid);
    }

    @Override
    public int add(AqbUserMsg aqbUserMsg) {
        return aqbUserMsgMapper.add(aqbUserMsg);
    }
}
